<template>
  <view class="index">
    <view class="jtop">
      <view class="status_bar"><!-- 这里是状态栏 --></view>
      <view class="jtop_l" @tap="navigateBack"
        ><image src="../../static/img/ic_back.png"></image
      ></view>
      <view class="jtop_c">墨盘介绍</view>
    </view>
    <view class="tophr"></view>

    <view class="da_top">
      <image
        :src="items.logo ? items.logo : '../../static/img/doc/logo.png'"
        mode=""
      ></image>
    </view>

    <view class="da_c">
      <view class="da_cl">
        功能介绍
      </view>
      <view class="da_cr">
        {{ items.intro }}
      </view>
    </view>

    <view class="da_f">
      <view class="da_fb">
        <view class="da_fbl">
          容量使用
        </view>
        <view class="da_fbr">
          {{ items.availableStorageCapacity }}G / {{ items.storageCapacity }}G
        </view>
      </view>
      <view class="da_fb noborder">
        <view class="da_fbl">
          回收站
        </view>
        <view class="da_fbr">
          <image src="../../static/img/jt.png" mode=""></image>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
import request from '@/common/request.js';
import { mapState } from 'vuex';

export default {
  data() {
    return {
      repeat_click: true,
      items: [],
    };
  },
  computed: mapState(['forcedLogin', 'hasLogin', 'userName']),
  onShow() {
    // 获取列表信息
    request({
      url: `/biz/modor-doc`,
      data: {
        corpId: this.corp_id,
      },
      method: 'GET',

      success: res => {
        if (res.data.success == true && res.data.data) {
          this.items = res.data.data;
        } else {
          // this.dqfull_name = "";
          // this.nodata = false;
          // 					this.repeat_click = true;
          //uni.showToast({
          // 	title: res.data.msg,
          // 	icon: 'none'
          // });
        }

        console.log('项目列表信息', this.items);
      },
      fail: () => {
        this.repeat_click = true;
        uni.showToast({
          title: '服务器开小差，请稍后~',
          icon: 'none',
        });
        return false;
      },
    });
  },
  methods: {
    navigateBack() {
      uni.navigateBack();
    },
  },
};
</script>

<style>
.tophr {
  width: 100%;
  height: 88rpx;
}
.uni-searchbar {
  box-shadow: none;
}
.da_top {
  width: 100%;
  height: auto;
  display: block;
  float: left;
  border: 1px solid #dddddd;
  border-left: 0;
  border-right: 0;
  background: #ffffff;
  margin: 20rpx 0 0;
}
.da_top image {
  width: 304rpx;
  height: 250rpx;
  display: block;
  float: none;
  margin: 0 auto;
}
.da_c {
  width: 100%;
  height: auto;
  display: block;
  float: left;
  border: 1px solid #dddddd;
  border-left: 0;
  border-right: 0;
  background: #ffffff;
  margin: 20rpx 0 0;
}
.da_cl {
  width: 150rpx;
  height: auto;
  display: block;
  float: left;
  font-size: 34rpx;
  color: #000000;
  margin: 24rpx 0 30rpx 30rpx;
}
.da_cr {
  width: 504rpx;
  height: auto;
  display: block;
  float: right;
  font-size: 28rpx;
  line-height: 36rpx;
  color: #999999;
  margin: 30rpx 30rpx 42rpx 0;
}
.da_f {
  width: 100%;
  height: auto;
  display: block;
  float: left;
  border: 1px solid #dddddd;
  border-left: 0;
  border-right: 0;
  background: #ffffff;
  margin: 20rpx 0 0;
}
.da_fb {
  width: 720rpx;
  height: 90rpx;
  display: block;
  float: right;
  border-bottom: 1px solid #dddddd;
  background: #ffffff;
}
.da_fbl {
  width: auto;
  height: 42rpx;
  display: block;
  float: left;
  font-size: 34rpx;
  line-height: 42rpx;
  color: #000000;
  margin: 24rpx 0;
}
.da_fbr {
  width: auto;
  height: 40rpx;
  display: block;
  float: right;
  font-size: 32rpx;
  line-height: 40rpx;
  color: #888888;
  margin: 25rpx 30rpx 0 0;
}
.da_fbr image {
  width: 16rpx;
  height: 25rpx;
  display: block;
  float: right;
  margin: 10rpx 3rpx 0 0;
}

.index {
  background: rgb(242, 242, 242);
  width: 100%;
  height: auto;
}
.jtop {
  width: 100%;
  height: 88rpx;
  background: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: inset 0px -1px 0px #dddddd;
}
.jtop_l {
  width: auto;
  height: 88rpx;
  display: block;
  float: left;
  font-size: 32rpx;
  color: #000000;
  line-height: 88rpx;
  margin: 0 0 0 30rpx;
}
.jtop_l image {
  width: 48rpx;
  height: 48rpx;
  display: block;
  float: left;
  margin: 20rpx 0 20rpx 0;
}
.jtop_r {
  width: 48rpx;
  height: 48rpx;
  display: block;
  float: right;
  margin: 20rpx 20rpx 0 0;
}
.jtop_rl {
  margin: 20rpx 30rpx 0 0;
}
.jtop_r image {
  width: 48rpx;
  height: 48rpx;
  display: block;
  float: left;
}
.jtop_c {
  width: 70%;
  height: 48rpx;
  line-height: 48rpx;
  display: block;
  float: left;
  position: fixed;
  top: 20rpx;
  left: 15%;
  text-align: center;
  font-size: 36rpx;
  color: #000000;
}
.jtop_c image {
  width: 36rpx;
  height: 36rpx;
  display: inline-block;
  float: none;
  margin-bottom: -5rpx;
  margin-left: 5rpx;
}
.jtop_b {
  width: 100%;
  height: auto;
  background: #ffffff;
  position: fixed;
  top: 88rpx;
  left: 0;
  z-index: 1001;
}
</style>
